﻿using System;
using NHibernate;

namespace Com.Pernix.Common.DataAccess
{
    public interface IUnitOfWork: IDisposable
    {
        ISession CurrentSession { get; }
        ITransaction BeginTransaction();
        void Commit();
        void Rollback();
    }
}